<?php

class CateModel extends Model {
	
	
	//加载分类列表，分类一共两极
	//$pid = 0 加载上级目录
	public function loadCateList($pid=0) {
		
		return $this->where('pid = '.$pid)->findAll();
		
	}
	
	
}

?>